package com.hao.tool.web.module.navigation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hao.tool.web.module.navigation.dto.NavigationDTO;
import com.hao.tool.web.module.navigation.entity.NavigationInfo;

import java.util.List;

/**
 * description
 *
 * @author RuiHaoZ on GZ.cmhk
 * @date 2019-11-21 21:44
 */
public interface NavigationService extends IService<NavigationInfo> {

    List<NavigationInfo> findByModelId(Integer useType, Long modelId, String userName);

    List<NavigationInfo> findByInfo(Integer useType, Long modelId, String linkName);

    void incrementClickCount(Long linkId);

    NavigationInfo addNavigation(NavigationDTO dto, String userName);

}
